home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-wos-src / ar / version.c < prev   
C/C++ Source or Header  |  1999-01-01  |  2KB  |  57 lines

  1. /* $VER: ar version.c V0.1 (31.01.98)
  2.  *
  3.  * This file is part of ar, a portable archive maintanance
  4.  * utility for normal and BSD-style archives.
  5.  * Copyright (c) 1999  Frank Wille
  6.  *
  7.  * ar is freeware and part of the portable and retargetable ANSI C
  8.  * compiler vbcc, copyright (c) 1995-99 by Volker Barthelmann.
  9.  * ar may be freely redistributed as long as no modifications are
  10.  * made and nothing is charged for it. Non-commercial usage is allowed
  11.  * without any restrictions.
  12.  * EVERY PRODUCT OR PROGRAM DERIVED DIRECTLY FROM MY SOURCE MAY NOT BE
  13.  * SOLD COMMERCIALLY WITHOUT PERMISSION FROM THE AUTHOR.
  14.  *
  15.  *
  16.  * v0.1  (31.01.99) phx
  17.  *       First working version, which only supports 'q' (quick append)
  18.  *       and 't' (table of contents), reads and writes normals and
  19.  *       BSD-style archives. Symbol table will not be created!
  20.  * v0.0  (29.01.99) phx
  21.  *       File created.
  22.  */
  23.  
  24. #include <stdio.h>
  25. #include "ar.h"
  26.  
  27.  
  28. void show_version(void)
  29. {
  30.   fprintf(stderr,PNAME " V%d.%d%c (c)1999 by Frank Wille\n"
  31.           "build date: " __DATE__ ", " __TIME__ "\n\n"
  32.           ,VERSION,REVISION,PLEVEL?('a'+PLEVEL-1):' ');
  33. }
  34.  
  35.  
  36. void show_usage(void)
  37. {
  38.   static const char *ar = PNAME;
  39.   static const char *pos = " position";
  40.   static const char *arc = " archive ";
  41.   static const char *fil = "file ...";
  42.  
  43.   show_version();
  44.  
  45.   fprintf(stderr,"Usage:\n\t%s d[TBv]%s%s\n"
  46.           "\t%s m[TBv]%s%s\n"
  47.           "\t%s m[abiTBv]%s%s%s\n"
  48.           "\t%s p[Tv]%s[%s]\n"
  49.           "\t%s q[cTBv]%s%s\n"
  50.           "\t%s r[cuTBv]%s%s\n"
  51.           "\t%s r[abciuTBv]%s%s%s\n"
  52.           "\t%s t[Tv]%s[%s]\n"
  53.           "\t%s x[ouTv]%s[%s]\n",
  54.           ar,arc,fil,ar,arc,fil,ar,pos,arc,fil,ar,arc,fil,ar,arc,fil,
  55.           ar,arc,fil,ar,pos,arc,fil,ar,arc,fil,ar,arc,fil);
  56. }
  57.